import 'package:card_swiper/card_swiper.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

class CardViewControl extends StatefulWidget {
  const CardViewControl({super.key});

  @override
  State<CardViewControl> createState() => _CardViewControlState();
}

class _CardViewControlState extends State<CardViewControl> {
  @override
  Widget build(BuildContext context) {
    return Swiper(
      itemBuilder: (BuildContext context,int index){
        return SwiperItem();
        // return Image.network("https://via.placeholder.com/350x150",fit: BoxFit.fill,);
      },
      itemCount: 3,
      loop: false,
      pagination: const SwiperPagination(),
      control: const SwiperControl(),
    );
  }
  Widget SwiperItem(){
    return Image.network("https://via.placeholder.com/350x150",fit: BoxFit.fill,);
  }
}
